package com.engr.springbooteasypoi.design.factory;

/**
 * 工厂具体实现
 */
public class MacFactory {

    public static Mac getInstance(String type) {

        if ("macPro".equals(type)) {
            return new MacPro();
        } else if ("macBook".equals(type)) {
            return new MacBook();
        }
        return null;
    }
}
